#pragma reqlib "gw_natives"

#define NO_DEALER -1
/*
	Registeres dealer with specified name
	@params:
		name -		Name of dealer
		autoRearm - 	Automaticly give weapons in new round
				0 - do not rearm
				1 - rearm if dealer has autoRearmMinWpn or less weapons
				2 - always rearm
		autoRearmMinWpn - Noumber of weapons when dealer get new ones
		rearmDropOld - 	Should dealer loose current weapon when rearming
		
	returns dealer's id or NO_DEALER if no more dealers are allowed	
*/
native gw_register_wpn_dealer(const name[], bool:autoRearm =true, autoRearmMinWpn=0, bool:rearmDropOld = true);

/*
	Sets dealer's weapon info
	@params:
		dealer - 	dealer id (from gw_register_wpn_dealer)
		weapon - 	weapon id
		minCount - 	minimum weapons count
		maxCount - 	maximum weapons count
		minChance - 	minimum chance that dealer will have this weapon (0-100)
		maxChance - 	maximum chance that dealer will have this weapon (0-100)
		minCost - 	minimum cost of a weapon
		maxCost - 	maximum cost of a weapon
*/
native gw_dealer_set_weapon(dealer, weapon, minCount, maxCount, minChance, maxChance, minCost, maxCost);

/*
	Arms all dealers - gives them weapons, sets cost (base on definition)
*/
native gw_arm_dealers();

/*
	Arms dealer - gives him weapons, sets cost (base on definition)
*/
native gw_arm_dealer(dealer);

/*
	Shows dealers menu
	@params:
		id -		Player id
*/
native gw_weapon_dealer_menu(id);

/*
	Sets dealers available to player. By default player has access to all dealers.
	@params:
		id - 		player id
		dealers - 	Available dealers
		num - 		Available dealers count
*/		
native gw_set_user_weapon_dealers(id, dealers[]="", num=0);

/* 
	Sets ammo cost for weapon
*/
native gw_set_ammo_cost(weapon ,cost);

